<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>拉拉货物流有限公司</title>
		<meta name="keywords" content="拉拉货物流有限公司,汕头物流配送,汕头物流,汕头物流货运,汕头货运,全国货运,厦门物流配送,深圳物流配送,广州物流配送,物流配送,物流货运,货运配送" />
	    <meta name="description" content="拉拉货物流有限公司是一家承接全国各地门到门配送业务的专业第三方物流，为企业量身定做仓储、配送物流方案，针对大小客户配备专业项目小组进行专人专车对接。" />
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	    <link rel="stylesheet" href="css/amazeui.min.css" type="text/css" />
	    <link rel="stylesheet" href="css/style.css" type="text/css" />
	    <script type="text/javascript" src="js/jquery.min.js" ></script>
	    <script type="text/javascript" src="js/amazeui.min.js" ></script>
	</head>
	<body>
		<header data-am-widget="header" class="am-header am-header-default header-green1">
	      <div class="am-header-left am-header-nav ">
		        <a href="javascript:history.back()" style="color: #fff;"><i class="am-icon-chevron-left"></i></a>
	        </div>
		  <h1 class="am-header-title" style="color: #fff;">评论</h1>
		  
        </header>
        <div class="jl"></div>
		<form >
			
		
        <textarea class="ts" placeholder="请输入反馈建议" name="content"></textarea>
        <input type="text" name="userId" style="display: none;">
		  <input type="text" name="driverId" style="display: none;">
		   <input type="text" name="orderId" style="display: none;">
		
		<button class="save" type="button">提交</button>
		</form>
	</body>
	<script type="text/javascript">
		var order=JSON.parse(sessionStorage.getItem("order"))
		var user=JSON.parse(sessionStorage.getItem("user"))
		var url=JSON.parse(sessionStorage.getItem("url"))
		$("input[name=userId]").val(user.id)
		$("input[name=orderId]").val(order.id)
		$(".save").click(function(){
			$.ajax({
				url:url+'/clientcomment/save',
				dataType:'json',
				type:'post',
				timeout:10000,
				data:$("form").serialize(),
				success:function(r){
					if(r.code==200){
						location.href='comment.html'
					}
					
				},
				error:function(xhr,type,errorThrown){
					
				}
			});
			
			
			
		})
		
		
	</script>
</html>

